srcCode=${notdir $(wildcard src/*.cpp)}
objFile:=$(patsubst %.cpp,obj/%.o,${srcCode})
CPPFLAGS+=-I/root/imx6dlsabresd/usr/include/libusb-1.0/ -Iinc/
CPPLD=-L/root/imx6dlsabresd/lib -lusb-1.0 -lpthread
cxx=${CXX}

%.o:src/%.cpp
	${cxx} ${CPPFLAGS} -c -o obj/$(basename $@).o $^ 

all:${objFile}
	@echo ${objFile}
#	srcCodeObj=${notdir $(wildcard obj/*.o)}
#	$(cxx) ${CPPLD} ${srcCodeObj} -o aoa 

#all:$(objFile)
#	$(cxx) ${CPPLD} $^ -o aoa 
#	echo ${objFile}
